gcc -fPIC -shared -O -o libithread.so thread.c
export  LD_LIBRARY_PATH=.:LD_LIBRARY_PATH
gcc -O -L. -lpthread -lithread -o thread_daemon thread_daemon.c
